﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Frame_Default" Codebehind="Default.aspx.cs" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="../Style/Skin1/frame.css" rel="stylesheet" type="text/css" />
    <link href="../Style/Skin1/popform.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../Js/Ajax.js"></script>
    <script type="text/javascript" src="../Js/frame.js"></script>
    <script type="text/javascript" src="../Js/DivFrm.js"></script>
    <script type="text/javascript" src="../js/common.js"></script>
    
    <script type="text/javascript">
       
        function refresh()
        {
            var xmlhttp = getXmlHttp();    
                    
            xmlhttp.onreadystatechange = function()
            {
                
                if(xmlhttp.readyState == 4)
                {
                    if(xmlhttp.status == 200)
                    {
                        //alert(xmlhttp.responseText);
                    }
                    else
                    {
                        alert(xmlhttp.status);
                    }
                }
            }
            
            xmlhttp.open("get","refresh.aspx",false);//true 是异步
            xmlhttp.send(null);
            window.setTimeout(refresh,1000 * 60 * 5);
        }
        function resize()
        {
            var docHeight = getDocHeight();

            //一级菜单的个数
            var menuCount = document.getElementById("divMenu").getElementsByTagName("li").length / 2 + 1;
            var clientWidth = document.documentElement.clientWidth;
            if (clientWidth < (menuCount * 105 - 50))//当实际宽度小于菜单总宽度时
            {
                document.body.style.width = (menuCount * 105) + "px";
                document.body.style.overflow = "auto";
            }
            else
            {
                document.body.style.width = null;
                document.body.style.overflow = "hidden";
            }

            var mainHeight = (docHeight - 93) + "px"
            
            var divLeft = document.getElementById("divLeft");


            divLeft.style.height = mainHeight;
            divLeft.style.overflow = "auto";

            document.getElementById("main").style.height = (docHeight - 90) + "px";//最外层的DIV要比table高一点，否则会出问题
            if (document.getElementById("frameMain"))
            {
                document.getElementById("frameMain").style.height = (docHeight - 91) + "px";
            }

            window.setTimeout(resize,200);
        }        
  




</script>
</head>
<body style="overflow:hidden;" scroll="no" id="body" runat="server">
    <form id="form1" runat="server"> 
    <div id="top">
        <div>
            <div class="logo">
            </div>
            <div class="logo_right">
                <span style="width:50px; display:block; float:left;">&nbsp;</span>
                <font color="#4A689C">您好，<asp:Label ID="lblUserName" runat="server" Text="Label"
                    Font-Bold="true"></asp:Label>&nbsp[&nbsp;</font>
                <asp:HyperLink ID="lnkLogout" runat="server" ForeColor="Black"  hidefocus="hidefocus">注销</asp:HyperLink><font
                    color="#4A689C">，</font><asp:HyperLink ID="lnkPersonalInfo" runat="server" ForeColor="Black"
                         hidefocus="hidefocus">个人账户</asp:HyperLink><font color="#4A689C">，</font><asp:HyperLink
                            ID="lnkModifyPwd" runat="server" ForeColor="Black"  hidefocus="hidefocus">修改密码</asp:HyperLink><font color="#4A689C">，</font><asp:HyperLink
                                ID="HyperLink1" runat="server" ForeColor="Black"  Target="frameMain" hidefocus="hidefocus" NavigateUrl="../../baibao/index.htm">百宝箱</asp:HyperLink>
                <font color="#4A689C">]</font></div>
        </div>
        <div id="divMenu" class="main_nav">
            <ul>
                <asp:Repeater ID="rptModule" runat="server" EnableViewState="false">
                    <ItemTemplate>
                        <li class="button"><a href='javascript:<%# "navModule1(\"" + Eval("ID") + "\",\"" + Eval("NavUrlAbsPath") + "\",null)" %>;' id='menu<%#Eval("ID") %>'>
                            <%# Eval("Name") %></a></li>
                    </ItemTemplate>
                    <SeparatorTemplate>
                        <li class="separator"></li>
                    </SeparatorTemplate>
                </asp:Repeater>                
            </ul>
        </div>
    </div>
    <div id="main" style=" height:600px;">
        <table border="0" cellpadding="0" cellspacing="0" style="width:100%">
            <tr>
                <td class="left" id="tdLeft">
                   <div id='divLeft' class='left_body_bg'></div>
                </td>
                <td class="right" id="tdMain">&nbsp;
                </td>
            </tr>
        </table>
    </div> 
     <div id="divDisable" ondblclick="delDivFrm()" title="双击可以关闭对话框" style="display:none;filter:'alpha(opacity=15)'; filter:alpha(opacity=15); opacity:0.15; position:absolute; background-color:#000000; z-index:20;-moz-opacity: 0.15"></div>  
    </form>
</body>
</html>

